<?php

/**
 * @author nhatnam
 * @copyright 2011
 */

require ('../Model/clsphieuthanhlysach.php');


if($_SERVER['REQUEST_METHOD']=='POST')
{
  
    $sua = $_POST['sua'];
    $xoa = $_POST['xoa'];
    $lapphieu = $_POST['lapphieu'];
    if($lapphieu == 'Lập phiếu')
    {
        themphieuthanhlysach();
        header("Location: ../giaodienphieuthanhlysach.php");  
        return;
    }
    if($xoa=='Xóa')
    {
        xoaphieuthanhlysach();
        header("Location: ../giaodienphieuthanhlysach.php");  
        return;
    }
    if($sua=='Sửa')
    {
        updatephieuthanhlysach();
        header("Location: ../giaodienphieuthanhlysach.php");  
        return;
    }
    
}

?>